package sweet.helper

/** Provide additional support to Scala and Java Array */
object ArrayHelper{
  /** Auto box any scala Any typs into wrapper objects, thus making a truy Array[Object] return type. */
  def mkObjectArray(elem: Any*): Array[Object] =   
    elem.asInstanceOf[scala.runtime.BoxedObjectArray].unbox(elem.getClass).asInstanceOf[Array[Object]]
}
